﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="$!webPath/resources/style/system/manage/$!{config.websiteCss}/template.css"  rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="cont">
  <div class="orderdetail">
    <div class="orderh">订单状态</div>
    <div class="orderul">
      <ul>
        <li><span class="ordertitle">订单号:</span><span>$!obj.order_id</span></li>
        #if($!obj.order_status==0)
        #set($status="已取消")
        #end
        #if($!obj.order_status==10)
        #set($status="待付款")
        #end
        #if($!obj.order_status==15)
        #set($status="线下支付待审核")
        #end
        #if($!obj.order_status==16)
        #set($status="货到付款待发货")
        #end
        #if($!obj.order_status==20)
        #set($status="已付款")
        #end
        #if($!obj.order_status==30)
        #set($status="已发货")        
        #end                
        #if($!obj.order_status==40)
        #set($status="已收货")
        #end
        #if($!obj.order_status==50)
        #set($status="已完成,已评价")                                              
        #end
        #if($!obj.order_status==60)
        #set($status="已结束")                                              
        #end
        <li><span class="ordertitle"> 订单状态:</span><span>$!status</span></li>
         <li><span class="ordertitle">运费:</span><span>¥$!CommUtil.null2Float($!{obj.ship_price})#if($!obj.transport)[$!{obj.transport}]#end</span></li>
         #if($!obj.ci)
         <li><span class="ordertitle"> 使用优惠券:</span><span>$!{obj.ci.coupon_sn}<strong style="color:#F90">[¥$!{obj.ci.coupon.coupon_amount}]</strong></span></li>
         #end
        <li><span class="ordertitle">订单总额:</span><span><strong class="orange" style="padding-right:10px;">¥$!{obj.totalPrice}</strong></span></li>
      </ul>
    </div>
    <div class="orderh">订单详情</div>
    <div class="orderhh">订单信息</div>
    <div class="orderul">
      <ul>
        <li><span class="ordertitle">买家名称:</span><span>$!obj.user.userName</span></li>
        <li><span class="ordertitle"> 卖家名称:</span><span>$!obj.store.store_name</span></li>
        #set($payment="未支付")
        #if($!obj.payment.mark=="alipay")
        #set($payment="支付宝")
        #end
        #if($!obj.payment.mark=="alipay_wap")
        #set($payment="手机网页支付宝")
        #end
        #if($!obj.payment.mark=="tenpay")
        #set($payment="财付通")
        #end  
        #if($!obj.payment.mark=="bill")
        #set($payment="快钱")
        #end                 
        #if($!obj.payment.mark=="chinabank")
        #set($payment="网银在线")
        #end       
        #if($!obj.payment.mark=="outline")
        #set($payment="线下支付")
        #end                  
        #if($!obj.payment.mark=="balance")
        #set($payment="预存款支付")
        #end
        #if($!obj.payment.mark=="payafter")
        #set($payment="货到付款")
        #end  
        #if($!obj.payment.mark=="paypal")
        #set($payment="paypal")
        #end
        <li><span class="ordertitle">支付方式:</span><span>$!payment</span></li>
        <li><span class="ordertitle">下单时间:</span><span>$!CommUtil.formatLongDate($!obj.addTime)</span></li>
      </ul>
    </div>
    <div class="orderhhh">收货人及发货信息</div>
    <div class="orderul">
      <ul>
        <li><span class="ordertitle">收货人姓名:</span><span>$!obj.addr.trueName</span></li>
        <li><span class="ordertitle">所在地区:</span><span>$!{obj.addr.area.parent.parent.areaName} $!{obj.addr.area.parent.areaName} $!{obj.addr.area.areaName} </span></li>
        <li><span class="ordertitle">邮政编码:</span><span>$!{obj.addr.zip}</span></li>
        <li><span class="ordertitle">电话号码:</span><span>$!{obj.addr.telephone}</span></li>
        <li><span class="ordertitle">手机号码:</span><span>$!{obj.addr.mobile}</span></li>
        <li><span class="ordertitle">详细地址:</span><span>$!{obj.addr.area_info}</span></li>
        <li><span class="ordertitle">配送方式:</span><span>$!obj.ship.shipping_name</span></li>
      </ul>
    </div>
    <div class="orderhhh">商品信息</div>
    <div class="ordetable">
      <table width="90%" border="0" cellspacing="0" cellpadding="0" class="orde_table">
        <tr style="border-bottom:1px dotted #CCEAF4">
          <td width="20%">&nbsp;</td>
          <td width="50%"><strong>商品信息</strong></td>
          <td width="10%"><strong>商品规格</strong></td>
          <td width="10%"><strong>单价</strong></td>
          <td width="10%"><strong>数量</strong></td>
        </tr>
        #foreach($gc in $obj.gcs)
        <tr style="border-bottom:1px dotted #CCEAF4"> #if($!gc.goods.goods_main_photo)
          #set($img="$!webPath/$!{gc.goods.goods_main_photo.path}/$!{gc.goods.goods_main_photo.name}_small.$!{gc.goods.goods_main_photo.ext}")
          #else
          #set($img="$!webPath/$!{config.goodsImage.path}/$!{config.goodsImage.name}")
          #end
          <td><img src="$!img" width="45" height="45" /></td>
          <td><a href="$!webPath/goods_$!{gc.goods.id}.htm" target="_blank" class="blue">$!{gc.goods.goods_name}</a> 
              #if($!{gc.goods.group_buy}==2) <span style="color:#F00">(团购)</span> #end
              #if($!{obj.goods.delivery_status}==2) <span style="color:#F00">[买就送]</span> #end
              #if($!{gc.goods.bargain_status}==2) <span style="color:#F00">(特价)</span> #end
              #if($!{gc.cart_type}=="combin")
              <div class="baby_gp"> 
                <a href="javascript:void(0);" style="color:#F00;">[组合商品]</a>
              </div>
              #end
          </td>
          <td> #foreach($gsp in $gc.gsps)
            #if($!gsp.spec)
            <li class="hui2">$!gsp.spec.name: $!gsp.value</li>
            #end
            #end </td>
          <td><strong class="orange">¥</strong><strong style="color:#F90">#if($!gc.goods.group_buy==2)$!{gc.goods.group_goods.gg_price}#else $!{gc.goods.store_price}#end</strong></td>
          <td>$!gc.count</td>
        </tr>
        #end
      </table>
    </div>
    <div class="orderhhh">物流信息</div>
    <div class="orderul_record">
      <ul>
        #if($!transInfo.status=="1")
          #foreach($info in $transInfo.data)
        <li><strong>$!info.time $!info.context</strong></li>
        #end
         #end
		#if($!transInfo.status=="0")
          <li><strong style="color:#F90">$!transInfo.message</strong></li>
		#end
      </ul>
    </div>
    
    
    <div class="orderhhh">操作历史</div>
    <div class="orderul_record">
      <ul>
      #foreach($ofl in $!obj.ofls)
        <li><strong style="color:#F90">$!{ofl.log_user.userName}</strong>于<strong><em>$!CommUtil.formatLongDate($!ofl.addTime)</em></strong>$!ofl.log_info #if($!ofl.state_info)操作原因:<strong><em>$!{ofl.state_info}</em></strong>#end</li>
        #end
      </ul>
    </div>
   #if($!obj.rls && $!obj.rls.size()>0)    
   <div class="orderhhh">退款日志</div>
    <div class="orderul_record">
      <ul>
       #foreach($rl in $!obj.rls)
        <li><strong style="color:#F90">$!{rl.refund_user.userName}</strong>于<strong><em>$!CommUtil.formatLongDate($!rl.addTime)</em></strong>使用<strong><em>$!rl.refund_type</em></strong>退款<strong><em>¥$!{rl.refund}</em></strong></li>
       #end
      </ul>
    </div>
    #end
   #if($!obj.grls && $!obj.grls.size()>0)    
   <div class="orderhhh">退货日志</div>
    <div class="orderul_record">
      <ul>
      #foreach($grl in $!obj.grls)
        #foreach($item in $grl.gr.items)  
        <li><strong><em>$!CommUtil.formatLongDate($!grl.addTime)</em></strong>订单：<strong><em>$!item.gr.of.order_id</em></strong>$!{item.goods.goods_name}  
          #foreach($gsp in $obj.gsps)
             #if($!gsp.spec)
                 $!gsp.spec.name: $!gsp.value
             #end
          #end
                  数量:$!{item.count}</li>
         #end
        #end
      </ul>
    </div>
    #end
  </div>
  <div class="submit">
    <input name="go" type="button" value="返回列表" onclick="window.location.href='$!webPath/admin/order_list.htm'" />
  </div>
</div>
</body>
</html>
